package day240522;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        MyMap<String, String> a = new MyMap<>("实训室8", "4台风扇");
        a.set("实训室9", "3台风扇");
        System.out.println(a.get("实训室9"));

        System.out.println("=== === ===");

        MyMap<String, Student[]> b = new MyMap<>("实训室8", new Student[] {new Student("a"), new Student("b")});
        b.set("实训室9", new Student[] {new Student("c"), new Student("d")});
        System.out.println(Arrays.toString(b.get("实训室9")));

        System.out.println("=== === ===");

        //MyMap<String, int> c = new MyMap<String, int>("ID8", 3);
        MyMap<String, Integer> c = new MyMap<String, Integer>("ID8", 3);
        System.out.println(c.get("ID8"));

    }
}
